package com.game.start;

import com.log.LogCenter;
import com.netty.ServerAddress;
import com.netty.client.ClientNettyManager;
import com.netty.server.ServerNettyManager;
import com.server.ServerCore;

/**
 * 
 * @author zhoufang
 *
 * 2018年1月10日 上午11:32:49
 */
public class GameServerStart {
	
	public static void main(String[] args) throws Exception {
		//启动服务端
		LogCenter.STDOUT.info("启动GameServer");
		ServerNettyManager.start(1, 4, 7000);
		ServerCore.init();
		
		ClientNettyManager.init(4);
		ServerAddress serverAddress = new ServerAddress(1, "127.0.0.1",7601);
		ClientNettyManager.connectServer(serverAddress);
	}
}
